
package com.shycloud.mido.organ.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shycloud.mido.organ.api.dto.OrgStuOrderDTO;
import com.shycloud.mido.organ.api.entity.OrgApplyEntity;
import com.shycloud.mido.organ.api.entity.OrgBill;
import com.shycloud.mido.organ.api.entity.OrgStuOrderEntity;
import com.shycloud.mido.organ.api.vo.StudentOrderVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface OrgStuOrderMapper extends BaseMapper<OrgStuOrderEntity> {

	/**
	 * 获取学生订单列表
	 *
	 * @param page        分页对象
	 * @param orgStuOrderDTO 学生订单DTO
	 * @return ScheduleDTO
	 */
	IPage<OrgStuOrderDTO> getStudentOrderPage(Page<OrgStuOrderDTO> page, @Param("query") OrgStuOrderDTO orgStuOrderDTO);

	/**
	 * 查询学生订单
	 * @param teacherId
	 * @param studentName
	 * @return
	 */
	List<StudentOrderVO> studentOrderList(@Param("teacherId") String teacherId,@Param("studentName") String studentName);

	/**
	 * 学生订单
	 * @param orgId
	 * @param studentId
	 * @return
	 */
	List<StudentOrderVO>  studentOrderBySelf(@Param("orgId") String orgId,@Param("studentId") String studentId);

	/**
	 * sel for 123
	 * @return
	 */
	List<OrgBill> orgSell1(@Param("orgId") String orgId,@Param("time") String time);

	/**
	 * sel far 94
	 * @return
	 */
	List<OrgBill> orgSell2(@Param("orgId") String orgId,@Param("time") String time);
	/**
	 * sel far 94
	 * @return
	 */
	List<Integer> orgSell3(@Param("orgId") String orgId,@Param("time") String time);
}
